
/*************************************************************************
* Copyright (c) 2008, ShenZhen Coship Electronic Ltd Co.
* All rights reserved.
* 
* File Name:		MPEG4Decode.h
* Summary:			interface for the CMPEG4Decode class.
* 
* Current Version:	1.0
* Author(s):
/------------------------------------------------------------------------/
revision			author				reason					date
1.0					Ding Ning			Initialize Version		2008-6-18
/------------------------------------------------------------------------/
*************************************************************************/


#if !defined(AFX_MPEG4DECODE_H__945FA27A_8879_45EB_9CDE_CAA573C0CFEA__INCLUDED_)
#define AFX_MPEG4DECODE_H__945FA27A_8879_45EB_9CDE_CAA573C0CFEA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ICodec.h"
#include "MPEG4Codec.h"

class CMPEG4Decode : public ICodec  
{
public:
	CMPEG4Decode();
	virtual ~CMPEG4Decode();
public:
	virtual BOOL Init(const char* pbuf, int len);
	virtual void Destroy();
	virtual int GetWidth();
	virtual int GetHeight();
	virtual int GetBPP();
	virtual BOOL Decode(const char* pbuf, int len, int subLen = 0);
	virtual void InitPicInfo();
	virtual char* GetPicBuff();
	
private:
	CMPEG4Codec* m_pCodec;
	char *m_szBuff;
};

#endif // !defined(AFX_MPEG4DECODE_H__945FA27A_8879_45EB_9CDE_CAA573C0CFEA__INCLUDED_)
